package database

import "fmt"

const (
	KEY_SUFFIX_BLOG_COUNT     = "BC_"
	KEY_SUFFIX_REFRESH_TOEKEN = "RT_"
)

const (
	FIELD_BLOG_LIKE_COUNT     = "L"
	FIELD_BLOG_VIEW_COUNT     = "V"
	FIELD_BLOG_SHARE_COUNT    = "S"
	FIELD_BLOG_FAVORITE_COUNT = "F"
)

const (
	JWT_SECRET = "ewiriorjefklsifioewrnerqoiroa;la;eapeoweiorfjekrfeioreorjweorsdlfksdfiweeiof"
)

const (
	TOEKEN_EXPIRE = 3600 * 24 * 7
)

func GetBlogsCountKey(blogId int) string {
	return KEY_SUFFIX_BLOG_COUNT + fmt.Sprintf("%d", blogId)
}

func GetRefreshTokeKey(refreshToken string) string {
	return KEY_SUFFIX_REFRESH_TOEKEN + refreshToken
}
